import {getMaterielReq} from 'Api'
export default {
    namespaced:true,
    state:{
        materiel:[],
    },
    actions:{
        async getMateriel({commit}) {
            commit({
                type:'GET_MATERIEL',
                payload:await getMaterielReq()
            })
        }
    },
    mutations:{
        
        GET_MATERIEL(state,{payload}){
            // console.log(payload)
           state.materiel = payload
        }
    }
}